<?php

namespace App\Models;

use Eloquent as Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class Identification
 * @package App\Models
 * @version April 3, 2018, 1:54 am UTC
 *
 * @property string name
 * @property string phone
 * @property string identity_card
 * @property string bank_card
 * @property string validity2_res
 * @property string validity4_res
 * @property integer user_id
 * @property integer validity
 */
class Identification extends Model
{
    use SoftDeletes;

    public $table = 'identifications';
    

    protected $dates = ['deleted_at'];


    public $fillable = [
        'name',
        'phone',
        'identity_card',
        'bank_card',
        'validity2_res',
        'validity4_res',
        'user_id',
        'validity'
    ];

    /**
     * The attributes that should be casted to native types.
     *
     * @var array
     */
    protected $casts = [
        'name' => 'string',
        'phone' => 'string',
        'identity_card' => 'string',
        'bank_card' => 'string',
        'validity2_res' => 'string',
        'validity4_res' => 'string',
        'user_id' => 'integer',
        'validity' => 'integer'
    ];

    /**
     * Validation rules
     *
     * @var array
     */
    public static $rules = [
        
    ];

    
}
